.dashboard-3d-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.scene-container {
  width: 100%;
  height: 100%;
  cursor: grab;
}

/* 全屏3D场景容器 */
.scene-container-fullscreen {
  width: 100%;
  height: 100%;
  cursor: grab;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.scene-container:active {
  cursor: grabbing;
}

/* 控制面板 */
.control-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-panel .ant-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.control-panel .ant-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.control-panel .ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.control-panel .ant-btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 加载覆盖层 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loading-overlay .ant-spin {
  color: white;
}

/* 楼宇信息面板 */
.building-info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 280px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.building-info-panel .ant-card-head {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.building-info-panel .ant-card-head-title {
  color: white;
  font-weight: 600;
}

.building-info-panel .ant-card-body {
  background: transparent;
  padding: 16px;
}

.building-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.info-item .value {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.info-item .value.status-normal {
  color: #4CAF50;
}

.info-item .value.status-warning {
  color: #FF9800;
}

.info-item .value.status-error {
  color: #F44336;
}

/* 图例面板 */
.legend-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 200px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.legend-panel .ant-card-head {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-panel .ant-card-head-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.legend-panel .ant-card-body {
  background: transparent;
  padding: 12px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .control-panel {
    top: 10px;
    left: 10px;
    padding: 8px;
  }
  
  .building-info-panel {
    top: 10px;
    right: 10px;
    width: 240px;
  }
  
  .legend-panel {
    bottom: 10px;
    left: 10px;
    width: 160px;
  }
  
  .legend-panel .ant-card-body {
    padding: 8px;
  }
  
  .info-item {
    padding: 6px 0;
  }
  
  .info-item .label,
  .info-item .value {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .building-info-panel {
    width: calc(100vw - 20px);
    right: 10px;
  }
  
  .legend-panel {
    width: calc(100vw - 20px);
    left: 10px;
  }
}

/* 动画效果 */
.building-info-panel,
.legend-panel {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.control-panel .ant-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-panel .ant-btn:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.control-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.control-group label:hover {
  color: #4a9eff;
}



/* 数据管理视图样式 */
.data-management-container {
  background: #f0f2f5;
  min-height: 100%;
}

.data-management-container .ant-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-management-container .ant-statistic-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.data-management-container .ant-statistic-content {
  font-size: 24px;
  font-weight: 600;
}

.data-management-container .ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
}

.data-management-container .ant-progress-line {
  margin: 0;
}

/* Tab样式优化 */
.ant-tabs {
  height: 100%;
}

.ant-tabs .ant-tabs-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px 6px 0 0;
}

.ant-tabs .ant-tabs-tab:hover {
  color: #1890ff;
  background: rgba(24, 144, 255, 0.05);
}

.ant-tabs .ant-tabs-tab.ant-tabs-tab-active {
  color: #1890ff;
  font-weight: 600;
  background: rgba(24, 144, 255, 0.1);
}

.ant-tabs .ant-tabs-content-holder {
  height: calc(100% - 46px);
  overflow: hidden;
}

.ant-tabs .ant-tabs-tabpane {
  height: 100%;
  outline: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ant-tabs .ant-tabs-tabpane-active {
  opacity: 1;
  transform: translateY(0);
}

/* Tab切换性能优化 */
.ant-tabs .ant-tabs-tabpane:not(.ant-tabs-tabpane-active) {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ant-tabs .ant-tabs-tabpane-active {
  visibility: visible;
  position: relative;
}

/* 自定义滚动条 */
.building-info-panel::-webkit-scrollbar,
.legend-panel::-webkit-scrollbar {
  width: 4px;
}

.building-info-panel::-webkit-scrollbar-track,
.legend-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.building-info-panel::-webkit-scrollbar-thumb,
.legend-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.building-info-panel::-webkit-scrollbar-thumb:hover,
.legend-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}